CC=gcc
CFLAGS=-O2
LDFLAGS=
LIBS=-ltwofish
INCLUDEPATH=-I../
OUTPUT_NAME=one_simple_round
OBJECTS=sbox.o one_round.o main.o
$(OUTPUT_NAME) : $(OBJECTS)
	$(CC) $(LIBS) $(LDFLAGS) -o $(OUTPUT_NAME) $(OBJECTS)
sbox.o : sbox.c sbox.h
	$(CC) $(CFLAGS) $(INCLUDEPATH) -c sbox.c 
one_round.o : one_round.c one_round.h sbox.h
	$(CC) $(CFLAGS) $(INCLUDEPATH) -c one_round.c
main.o : main.c
	$(CC) $(CFLAGS) $(INCLUDEPATH) -c main.c
clean : 
	-rm $(OBJECTS)
